package edu.pw.treegrid.server.web;

import edu.pw.treegrid.shared.ReportColumnCategory;
import edu.pw.treegrid.shared.ReportColumnDescription;
import edu.pw.treegrid.shared.ReportColumnType;

public class ReportColumnDescriptionServer implements ReportColumnDescription {
	private String name;
	private String title;
	private ReportColumnType type;
	private String imageSrc = "pieces/16/cube_green.gif";
	private boolean folder;
	private ReportColumnCategory category = ReportColumnCategory.OTHER;
	private String format;
	private String description;
	private String width;
	
	public ReportColumnDescriptionServer() {
	}

	public ReportColumnDescriptionServer(String name, String title, ReportColumnType type, String imageSrc, ReportColumnCategory category, String description) {
		super();
		this.name = name;
		this.title = title;
		this.type = type;
		this.imageSrc = imageSrc;
		this.category = category;
		this.description = description;
	}
	
	/* (non-Javadoc)
	 * @see edu.pw.treegrid.shared.ReportColumnDescription#getName()
	 */
	public String getName() {
		return name;
	}

	/* (non-Javadoc)
	 * @see edu.pw.treegrid.shared.ReportColumnDescription#setName(java.lang.String)
	 */
	public void setName(String name) {
		this.name = name;
	}

	/* (non-Javadoc)
	 * @see edu.pw.treegrid.shared.ReportColumnDescription#getTitle()
	 */
	public String getTitle() {
		return title;
	}

	/* (non-Javadoc)
	 * @see edu.pw.treegrid.shared.ReportColumnDescription#setTitle(java.lang.String)
	 */
	public void setTitle(String title) {
		this.title = title;
	}
	
	/* (non-Javadoc)
	 * @see edu.pw.treegrid.shared.ReportColumnDescription#getImageSrc()
	 */
	public String getImageSrc() {
		return imageSrc;
	}

	/* (non-Javadoc)
	 * @see edu.pw.treegrid.shared.ReportColumnDescription#setImageSrc(java.lang.String)
	 */
	public void setImageSrc(String imageSrc) {
		this.imageSrc = imageSrc;
	}

	/* (non-Javadoc)
	 * @see edu.pw.treegrid.shared.ReportColumnDescription#getType()
	 */
	public ReportColumnType getType() {
		return type;
	}

	/* (non-Javadoc)
	 * @see edu.pw.treegrid.shared.ReportColumnDescription#setType(edu.pw.treegrid.shared.ReportColumnType)
	 */
	public void setType(ReportColumnType type) {
		this.type = type;
	}

	public void setFolder(boolean isFolder) {
		this.folder = isFolder;
	}

	public boolean isFolder() {
		return this.folder;
	}

	public ReportColumnCategory getCategory() {
		return this.category;
	}

	public void setCategory(ReportColumnCategory category) {
		this.category = category;
	}

	public String getFormat() {
		return format;
	}

	public void setFormat(String format) {
		this.format = format;
	}

	@Override
	public String getDescription() {
		return description;
	}

	@Override
	public void setDescription(String description) {
		this.description = description;
	}

	@Override
	public String getWidth() {
		return this.width;
	}

	@Override
	public void setWidth(String width) {
		this.width = width;
	}
}
